<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
        $map['staus']='off';
        $bannerlist = D('banner')->order('id desc')->where($map)->select();
        $this->assign('bannerlist',$bannerlist);
        $this->display();
    }
}